[paket]
tanim   = PDF işleme kitaplığı-Qt5 bağlamları
paketci = Cihan_Alkan
grup    = kütüphane
url     = https://poppler.freedesktop.org
arsiv   = "poppler-${surum}"

[gerek]
derleme = cmake qt5-base libpng tiff lcms2 fontconfig cairo openjpeg2 
calisma = lcms2 fontconfig cairo openjpeg2 tiff qt5-base

[kaynak]
1       = ${url}/poppler-${surum}.tar.xz
#2 = https://github.com/archlinux/svntogit-packages/raw/packages/poppler/trunk/export-SplashFont-symbols-used-by-Scribus.patch

[sha256]
#1       = 434ecbbb539c1a75955030a1c9b24c7b58200b7f68d2e4269e29acf2f8f13336

[derle]
betik   = cd $SRC
betik   = mkdir build
#betik   = patch -Np1 -d ${isim}-${surum} < /sources/export-SplashFont-symbols-used-by-Scribus.patch
betik   = cd build
betik   = cmake ../${isim}-${surum} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DENABLE_UNSTABLE_API_ABI_HEADERS=ON 
betik   = make
#betik   = cmake -S poppler-$surum -B build -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_INSTALL_LIBDIR=/usr/lib -D ENABLE_UTILS=ON -D ENABLE_SPLASH=ON -D ENABLE_CPP=ON -D ENABLE_GLIB=OFF -D ENABLE_QT5=OFF -D ENABLE_ZLIB=ON -D ENABLE_CMS=lcms2 -D ENABLE_LIBOPENJPEG=none -D WITH_NSS3=OFF -D RUN_GPERF_IF_PRESENT=OFF
#betik   = cmake --build build



[pakur]
betik   = cd $SRC
betik   = cd build
betik   = make DESTDIR="${PKG}" install
betik   = make -C glib DESTDIR="${PKG}" install
betik   = install -m755 -d "${PKG}/usr/lib/pkgconfig"
betik   = install -m644 poppler-glib.pc "${PKG}/usr/lib/pkgconfig/"
betik   = make -C qt5 DESTDIR="${PKG}" install
betik   = install -m755 -d "${PKG}/usr/lib/pkgconfig"
betik   = install -m644 poppler-qt5.pc "${PKG}/usr/lib/pkgconfig/"
#betik   =make -C qt6 DESTDIR="${pkgdir}" install
#betik   =install -m755 -d "${pkgdir}/usr/lib/pkgconfig"

